package com.zm.scsimple.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author zoum
 * @create 2019/2/25 16:11
 */
@FeignClient(value = "discovery-client", fallback = FeignClientServiceFallBack.class)
public interface FeignClientService{

    @RequestMapping(method = RequestMethod.GET, value = "/hello")
    String  hello(@RequestParam("name") String name);
}
